﻿<Window x:Class="ASPItalia.ModelVirtualCasting.WPF.Views.NewCandidatesView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:vm="http://schemas.aspitalia.com/ModelVirtualCasting/XAML/ViewModels"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        d:DataContext="{d:DesignInstance vm:NewCandidatesViewModel,IsDesignTimeCreatable=True}"
        WindowStyle="None"
        AllowsTransparency="True"
        ResizeMode="NoResize"
        ShowInTaskbar="False"
        WindowStartupLocation="CenterOwner"
        Height="377"
        Width="500" Background="Transparent" >
    <Grid >
        <Border HorizontalAlignment="Left" Width="53" Background="Black" RenderTransformOrigin="0.5,0.5" Height="200" VerticalAlignment="Center" Margin="15,0,0,0">
        	<Border.RenderTransform>
        		<TransformGroup>
        			<ScaleTransform/>
        			<SkewTransform/>
        			<RotateTransform Angle="-3.34"/>
        			<TranslateTransform/>
        		</TransformGroup>
        	</Border.RenderTransform>
        	<TextBlock Text="Candidate" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" FontSize="24" TextAlignment="Center">
        		<TextBlock.LayoutTransform>
        			<TransformGroup>
        				<ScaleTransform/>
        				<SkewTransform/>
        				<RotateTransform Angle="-90"/>
        				<TranslateTransform/>
        			</TransformGroup>
        		</TextBlock.LayoutTransform>
        	</TextBlock>
        </Border>
        <ListBox ItemsSource="{Binding Candidates}"
                 IsSynchronizedWithCurrentItem="True" 
                 SelectionChanged="ListBox_SelectionChanged" 
                 Style="{DynamicResource NewModelListBoxStyle}" Margin="60,0,0,0" />

        <Button Content=""
                Width="40"
                Height="40"
                VerticalAlignment="Top"
                HorizontalAlignment="Right"
                Click="CloseButton_Click" Style="{DynamicResource CloseButton}" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" />
    </Grid>
</Window>
